//
//  CollectionoforiginalmindViewController.m
//  Gxj
//
//  Created by 💋索少杰 on 2017/9/20.
//  Copyright © 2017年 wkq. All rights reserved.
//

#import "CollectionoforiginalmindViewController.h"
#import "MyCollectionoforiginalmindTableViewCell.h"

@interface CollectionoforiginalmindViewController ()<UITableViewDelegate,UITableViewDataSource>

@property(nonatomic, strong) UITableView * tableView;

@end

@implementation CollectionoforiginalmindViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setTableView];
}
- (void)setTableView{
    
    _tableView=[[UITableView alloc] initWithFrame:CGRectMake(0, kHeightScale(96), UIScreenWidth, UIScreenHeight-20) style:UITableViewStylePlain];
    _tableView.delegate=self;
    _tableView.dataSource=self;
    //_tableView.scrollEnabled =NO; //设置tableview 不能滚动
    [self.view addSubview:_tableView];
}
//返回每个分区下的单元格个数，必须实现
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 10;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return kHeightScale(260);
}



- (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    static NSString * str= @"biao";
    MyCollectionoforiginalmindTableViewCell*cell=[tableView dequeueReusableCellWithIdentifier:str];
    if (!cell) {
        cell=[[MyCollectionoforiginalmindTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:str];
    }
    cell.selectionStyle=UITableViewStylePlain;
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
